package cn.huiyunche.base.service.interfaces;

import cn.huiyunche.base.service.vo.Result;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public interface QiniuService {

    /**
     * 获取简单上传授权
     */
    Result<String> getSimpleUploadToken();

    /**
     * 获取汽车LOGO上传token
     */
    Result<String> getSimpleUploadTokenForBrandLogo();

    /**
     * 获取下载授权
     */
    Result<String> getDownloadUrl(String key, String mode, String w, String h);

    /**
     * 获取商品车LOGO下载授权
     */
    String getDownloadBrandUrl(String key);

    /**
     * 下载微信图片到骑牛
     */
    Result<Object> upload2QiniuByWeixin(String mediaIds);

    /**
     * 修改下载资源名字
     *
     * @param url      url
     * @param name     name
     * @param request
     * @param response
     */
    void reNameQiniuImages(String name, String url, HttpServletRequest request, HttpServletResponse response);
}
